﻿<View 
    x:Class="Poet.Views.FontSetView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <View.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="..\Resources\XamlStore.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </View.Resources>

    <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
        <StackPanel>  
            <ItemsControl Margin="4" ItemsSource="{StaticResource FontToolBarCollection}">
                <ItemsControl.Resources>
                    <Style TargetType="ComboBox" BasedOn="{StaticResource {x:Type ComboBox}}">
                        <Setter Property="Margin" Value="3"/>
                        <Setter Property="DataContext" Value="{Binding ViewModel.TextEditorViewModel}"/>
                    </Style>
					<Style TargetType="TextBlock">
						<Setter Property="VerticalAlignment" Value="Center"/>
						<Setter Property="Margin" Value="4 0 0 0"/>
					</Style>
					<Style TargetType="Separator">
						<Setter Property="Margin" Value="0 8 0 4"/>
					</Style>
                </ItemsControl.Resources>
            </ItemsControl>  	
			<ItemsControl Margin="4" ItemsSource="{StaticResource SettingsCommands}"/>
        </StackPanel>
    </ScrollViewer>
</View>